using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes.DomainAttributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Enums;
using System.Collections.Generic;
using System.ComponentModel;

namespace Baci.ArcGIS._ModelTools._ModelOnly
{
    /// <summary>
    /// <para>If Coordinate System Is</para>
    /// <para>Evaluates the input data for  the specified coordinate system.</para>
    /// <para>计算指定坐标系的输入数据。</para>
    /// </summary>    
    [DisplayName("If Coordinate System Is")]
    public class CoordinateSystemIfThenElse : AbstractGPProcess
    {
        /// <summary>
        /// 无参构造
        /// </summary>
        public CoordinateSystemIfThenElse()
        {

        }

        /// <summary>
        /// 有参构造
        /// </summary>
        /// <param name="_in_data">
        /// <para>Input Data Element</para>
        /// <para>The input data element to be evaluated.</para>
        /// <para>要计算的输入数据元素。</para>
        /// </param>
        /// <param name="_coordinate_system">
        /// <para>Coordinate System</para>
        /// <para>The coordinate system that will be evaluated.</para>
        /// <para>将要评估的坐标系。</para>
        /// </param>
        public CoordinateSystemIfThenElse(object _in_data, List<object> _coordinate_system)
        {
            this._in_data = _in_data;
            this._coordinate_system = _coordinate_system;
        }
        public override string ToolboxName => "Model Tools";

        public override string ToolName => "If Coordinate System Is";

        public override string CallName => "mb.CoordinateSystemIfThenElse";

        public override List<string> AcceptEnvironments => [];

        public override object[] ParameterInfo => [_in_data, _coordinate_system, _true, _false];

        /// <summary>
        /// <para>Input Data Element</para>
        /// <para>The input data element to be evaluated.</para>
        /// <para>要计算的输入数据元素。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Input Data Element")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _in_data { get; set; }


        /// <summary>
        /// <para>Coordinate System</para>
        /// <para>The coordinate system that will be evaluated.</para>
        /// <para>将要评估的坐标系。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Coordinate System")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public List<object> _coordinate_system { get; set; }


        /// <summary>
        /// <para>True</para>
        /// <para></para>
        /// <para></para>
        /// <para></para>
        /// </summary>
        [DisplayName("True")]
        [Description("")]
        [Option(OptionTypeEnum.derived)]
        public object _true { get; set; }


        /// <summary>
        /// <para>False</para>
        /// <para></para>
        /// <para></para>
        /// <para></para>
        /// </summary>
        [DisplayName("False")]
        [Description("")]
        [Option(OptionTypeEnum.derived)]
        public object _false { get; set; }


        public CoordinateSystemIfThenElse SetEnv()
        {
            base.SetEnv();
            return this;
        }

    }

}